<%--
  Created by IntelliJ IDEA.
  User: lanouhn
  Date: 17/9/2
  Time: 16:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center>
    <table width="200" border="1">
        <tr>
            <th scope="col">序号</th>
            <th scope="col">ID</th>
            <th scope="col">姓名</th>
            <th scope="col">电话</th>
            <%--<th scope="col">年龄</th>--%>
        </tr>
        <c:forEach begin="0" step="1" items="${userlist}" var="list" varStatus="st">
            <tr>
                <td>${st.count}</td>
                <td>${list.id}</td>
                <td>${list.username}</td>
                <td>${list.mobile}</td>
                <%--<td>${list.age}</td>--%>
            </tr>
        </c:forEach>
    </table>
    <p>一共${page.pages}页</p>
    <a href="/ssm_pro/pagelist.action?page=${page.firstPage}">第一页</a>
    <a href="/ssm_pro/pagelist.action?page=${page.nextPage}">下一页</a>
    <a href="/ssm_pro/pagelist.action?page=${page.prePage}">上一页</a>
    <a href="/ssm_pro/pagelist.action?page=${page.lastPage}">最后页</a>
</center>
</body>
</html>
